﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MotoGame.Estados.Fases.Fase1
{
    class Plataforma : Sprite
    {
        public Plataforma(ContentManager content, GameWindow window) :base(content.Load<Texture2D>("Fases/Fase1/Textures/plataforma"))
        { 

        }

        public override void Update(GameTime gameTime)
        {
            throw new NotImplementedException();
        }

        public void Update(GameTime gameTime, Vector2 offset)
        {
            Posicao -= offset;
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(textura, new Rectangle((int) posicao.X, (int) posicao.Y, textura.Width, textura.Height), Color.White);
        }
    }
}
